package com.geekaca.iobuffer;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class HelloFileWriter {
    public static void main(String[] args) {

        char[] arr = {'c', 'D'};
        try (
                Writer fwriter = new FileWriter("studyIOBuffer\\7-4.txt", true);
        ) {
            fwriter.write('A');
            fwriter.write("中国\n");
            fwriter.write(arr);
            fwriter.write("1233435546", 0, 3);
            fwriter.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
